package cn.zhoutao.basic.base.service;

import cn.zhoutao.basic.base.query.BaseQuery;
import cn.zhoutao.basic.util.PageList;

import java.util.List;

public interface IBaseService <T>{
    List<T> queryAll();

    void save(T t);

    void update(T t);

    void removeById(Long id);

    T queryById(Long id);

    //分页和高级查询
    PageList<T> queryPage(BaseQuery query);

    //批量删除
    void batchRemove(List<Long> ids);
}
